﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Sites/Man/Root.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="Templates_Home_Default" %>

<asp:Content ID="cphHeaderWrapper" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphHeader" runat="Server">
    <div id="homePageTopBox" class="clearfix">
        <div id="homePageTopBox_LCol" >
            <span class="title">CO2&amp;U</span>
            <div class="hpCarousel">
                <ul>
                    <li>
                        <asp:Label ID="lblCarbonAudited" CssClass="stats" runat="server"/>
                        <asp:Label ID="lblCarbonAuditedUnit" CssClass="statsUnit" Text="kg CO<sub>2</sub>e" runat="server"/>
                        <span class="statement">Total Carbon Audited</span>
                        
                        <asp:Label ID="lblCarbonPledged" CssClass="stats" runat="server"/>
                        <asp:Label ID="Label1" CssClass="statsUnit" Text="kg CO<sub>2</sub>e" runat="server"/>
                        <span class="statement">Total Carbon Pledged</span>
                    </li>
                    <li style="display:none">
                        <asp:Label ID="lblNoOfUsers" CssClass="stats" runat="server" />
                        <span class="statement">Total Number of Users</span>
                        <asp:Label ID="lblTotalCarbonSaved" CssClass="stats" runat="server" />
                        <asp:Label ID="Label2" CssClass="statsUnit" Text="kg CO<sub>2</sub>e" runat="server"/>
                        <span class="statement">Total Carbon Saved</span>
                    </li>
                   
                </ul>
            </div>
        </div>
        <div id="homePageTopBox_RCol">
            <acms:FlashControl FlashFileUrl="~/Sites/Man/Flash/SlideShow.swf" runat="server" Width="718" Height="255" ID="flashSlideShow" />  
        </div>
    </div>
    <%--<asp:Image ImageUrl="~/Sites/Man/img/homeImage.jpg" runat="server" />--%>
    
    <%-- <cex:RoundedBox ID="header" Color="Charcol" runat="server">
        <div id="headerContent">home page movie and stats</div>
    </cex:RoundedBox>--%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphContent" runat="Server">
    <%--   <cex:RoundedBox ID="titleBox" Color="Grey" RoundedBottom="false" runat="server">
        <h2>Our Carbon Offset Portfolio</h2>
    </cex:RoundedBox>
    <div class="spacer" style="border-top:3px solid #c2bcb6; background-color:#ffffff"></div>   --%>
    <%-- <cex:RoundedBox ID="content" Color="White" RoundedBottom="true" RoundedTop="false" runat="server">    
    </cex:RoundedBox>   --%>
    <asp:Panel ID="Panel1" CssClass="home" runat="server">
        <div class="colHP clearfix">
            <ul class="col first">
                <li>
                    <cex:RoundedBox ID="titleBox" Color="Grey" RoundedBottom="false" CssClass="slideVisible"
                        runat="server">
                        <h2>Getting Started</h2>
                    </cex:RoundedBox>
                    <cex:RoundedBox ID="RoundedBox2" Color="White" RoundedBottom="true" RoundedTop="false"
                        runat="server">
                        <asp:ListView ID="lvProcessInvoled" DataSourceID="dsProcesses" runat="server">
                            <LayoutTemplate>
                                <ul class="content">
                                    <asp:PlaceHolder ID="itemPlaceHolder" runat="server"></asp:PlaceHolder>
                                </ul>
                            </LayoutTemplate>
                            <ItemTemplate>
                                <li>
                                    <a href='<%#ResolveUrl((string)Eval("Url")) %>'><%#Eval("DisplayName")%></a></li>
                            </ItemTemplate>
                            <EmptyDataTemplate>
                                <li><span>No content</span></li>
                            </EmptyDataTemplate>
                        </asp:ListView>
                    </cex:RoundedBox>
                </li>
                <li>
                    <asp:LoginView ID="loggedInMyCO2" runat="server">
                        <AnonymousTemplate>
                            <cex:RoundedBox ID="RoundedBox8" Color="Grey" RoundedBottom="true" CssClass="slideVisible" runat="server">
                                <h2 class="loggedOut">My CO2 statement</h2>
                            </cex:RoundedBox>
                        </AnonymousTemplate>
                        <LoggedInTemplate>
                            <cex:RoundedBox ID="RoundedBox8" Color="Grey" RoundedBottom="false" CssClass="slideVisible"
                                runat="server">
                                <h2>My CO2 statement</h2>
                            </cex:RoundedBox>
                            <cex:RoundedBox ID="RoundedBox9" Color="White" RoundedBottom="true" RoundedTop="false"
                                runat="server">
                                <asp:ListView ID="listAudits" DataSourceID="dsAudits" runat="server">
                                    <LayoutTemplate>
                                        <ul class="content">
                                           <asp:PlaceHolder ID="itemPlaceHolder" runat="server" />
                                        </ul>
                                    </LayoutTemplate>
                                    <EmptyDataTemplate>
                                        <ul class="content">
                                            <li>No data available yet.</li>
                                        </ul>
                                    </EmptyDataTemplate>
                                    <ItemTemplate>
                                        <li>
                                            <asp:HyperLink ID="lnkAudit" Text='<%#Eval("EndDate", "{0:dd MMMM yyyy}") %>' NavigateUrl='<%# ResolveUrl(AcmsContext.GetUrl((bool)Eval("Completed") ? Eval("Id", "~/MyCO2/MyCO2Statement.aspx?Id={0}") : Eval("Id", "~/MyCO2/ContinueAudit.aspx")))%>' runat="server" />
                                        </li>
                                    </ItemTemplate>
                                </asp:ListView>
                            </cex:RoundedBox>
                        </LoggedInTemplate>
                    </asp:LoginView>
                </li>
            </ul>
            <ul class="col middle">
                <li>
                    <cex:RoundedBox ID="RoundedBox1" Color="Grey" RoundedBottom="false" CssClass="slideVisible"
                        runat="server">
                        <h2>CO2&amp;U Tips</h2>
                    </cex:RoundedBox>
                    <cex:RoundedBox ID="RoundedBox3" Color="White" RoundedBottom="true" RoundedTop="false" runat="server">
                        <asp:ListView ID="lvUserTips" DataSourceID="dsUserTips" runat="server">
                            <LayoutTemplate>
                                <ul class="content">
                                    <asp:PlaceHolder ID="itemPlaceHolder" runat="server"/>
                                </ul>
                            </LayoutTemplate>
                            <ItemTemplate>
                                <li><a href='<%#ResolveUrl((string)Eval("Url")) %>'>
                                    <%#Eval("DisplayName") %></a></li>
                            </ItemTemplate>
                            <EmptyDataTemplate>
                                <ul class="content">
                                    <li><span>No content</span></li>
                                </ul>
                            </EmptyDataTemplate>
                        </asp:ListView>
                    </cex:RoundedBox>
                </li>
                <li>
                    <asp:LoginView ID="LoginView1" runat="server">
                        <AnonymousTemplate>
                            <cex:RoundedBox ID="RoundedBox12" Color="Grey" RoundedBottom="true" CssClass="slideVisible"
                                runat="server">
                                <h2 class="loggedOut">My Commitment</h2>
                            </cex:RoundedBox>
                        </AnonymousTemplate>
                        <LoggedInTemplate>
                            <cex:RoundedBox ID="RoundedBox10" Color="Grey" RoundedBottom="false" CssClass="slideVisible"
                                runat="server">
                                <h2>My Commitment</h2>
                            </cex:RoundedBox>
                            <cex:RoundedBox ID="RoundedBox11" Color="White" RoundedBottom="true" RoundedTop="false" runat="server">
                                <asp:ListView ID="listCommitments" DataSourceID="dsCommitments" runat="server">
                                    <LayoutTemplate>
                                        <ul class="content">
                                           <asp:PlaceHolder ID="itemPlaceHolder" runat="server" />
                                        </ul>
                                    </LayoutTemplate>
                                    <EmptyDataTemplate>
                                        <ul class="content">
                                            <li>You dont have any data yet!</li>
                                        </ul>
                                    </EmptyDataTemplate>
                                    <ItemTemplate>
                                        <li>
                                            <asp:HyperLink ID="lnkCommitment" Text='<%#Eval("Date", "{0:dd MMMM yyyy}") %>' NavigateUrl='<%# Eval("Date", "~/Templates/MyCommitment/Default.aspx?Date={0:dd/MM/yyyy}")%>' runat="server" />
                                        </li>
                                    </ItemTemplate>
                                </asp:ListView>
                                
                            </cex:RoundedBox>
                        </LoggedInTemplate>
                    </asp:LoginView>
                </li>
            </ul>
            <ul class="col last">
                <li>
                    <asp:LoginView ID="loginMerit" runat="server">
                        <AnonymousTemplate>
                            <cex:RoundedBox ID="RoundedBox4" Color="Grey" RoundedBottom="true" CssClass="slideVisible"
                                runat="server">
                                <h2 class="loggedOut">Merit Table</h2>
                            </cex:RoundedBox>
                        </AnonymousTemplate>
                        <LoggedInTemplate>
                            <cex:RoundedBox ID="RoundedBox4" Color="Grey" RoundedBottom="false" CssClass="slideVisible"
                                runat="server">
                                <h2>Merit Table</h2>
                            </cex:RoundedBox>
                            
                            <cex:RoundedBox ID="RoundedBox6" Color="White" RoundedBottom="true" RoundedTop="false" runat="server">
                                
                                <asp:ListView ID="lvMerit" DataSourceID="dsMerit" runat="server">
                                    
                                    <LayoutTemplate>
                                        <ul class="content">
                                            <asp:PlaceHolder ID="itemPlaceHolder" runat="server"/>
                                        </ul>
                                    </LayoutTemplate>
                                    
                                    <ItemTemplate>
                                        <li>
                                            <asp:HyperLink ID="HyperLink9" runat="server" Text='<%#Eval("DisplayName")%>' NavigateUrl="~/MeritTable.aspx" />
                                        </li>
                                    </ItemTemplate>
                                    
                                    <EmptyDataTemplate>
                                        <li>
                                            <span>No content</span>
                                        </li>
                                    </EmptyDataTemplate>
                                
                                </asp:ListView>
                                
                                <%--<ul class="content">
                                    <li><asp:HyperLink ID="HyperLink4" Text="Will Wheeler" runat="server" NavigateUrl="#" /></li>
                                    <li><asp:HyperLink ID="HyperLink5" Text="Saul Bell" runat="server" NavigateUrl="#" /></li>
                                    <li><asp:HyperLink ID="HyperLink6" Text="Josh James" runat="server" NavigateUrl="#" /></li>
                                    <li><asp:HyperLink ID="HyperLink7" Text="Owen Tursley" runat="server" NavigateUrl="#" /></li>
                                    <li><asp:HyperLink ID="HyperLink8" Text="Mat Dyson" runat="server" NavigateUrl="#" /></li>
                                </ul>--%>
                            </cex:RoundedBox>
                        </LoggedInTemplate>
                    </asp:LoginView>
                </li>
                <li>
                    <asp:LoginView ID="loginUsers" runat="server">
                        <AnonymousTemplate>
                            <cex:RoundedBox ID="RoundedBox13" Color="Grey" RoundedBottom="true" CssClass="slideVisible"
                                runat="server">
                                <h2 class="loggedOut">New Users</h2>
                            </cex:RoundedBox>
                        </AnonymousTemplate>
                        <LoggedInTemplate>
                            <cex:RoundedBox ID="RoundedBox5" Color="Grey" RoundedBottom="false" CssClass="slideVisible"
                                runat="server">
                                <h2>New Users</h2>
                            </cex:RoundedBox>
                            <cex:RoundedBox ID="RoundedBox7" Color="White" RoundedBottom="true" RoundedTop="false" runat="server">
                                
                                <asp:ListView ID="lvNewUsers" DataSourceID="dsNewUsers" runat="server">
                                    
                                    <LayoutTemplate>
                                        <ul class="content">
                                            <asp:PlaceHolder ID="itemPlaceHolder" runat="server"/>
                                        </ul>
                                    </LayoutTemplate>
                                    
                                    <ItemTemplate>
                                        <li>
                                            <asp:HyperLink runat="server" Text='<%#Eval("DisplayName")%>' NavigateUrl="~/NewUsers.aspx" />
                                        </li>
                                    </ItemTemplate>
                                    
                                    <EmptyDataTemplate>
                                        <li><span>No content</span></li>
                                    </EmptyDataTemplate>
                                
                                </asp:ListView>

                                <%--<ul class="content">
                                    
                                    <li><asp:HyperLink ID="HyperLink6" Text="Josh James" runat="server" NavigateUrl="#" /></li>
                                    <li><asp:HyperLink ID="HyperLink5" Text="Saul Bell" runat="server" NavigateUrl="#" /></li>
                                    <li><asp:HyperLink ID="HyperLink7" Text="Owen Tursley" runat="server" NavigateUrl="#" /></li>
                                    <li><asp:HyperLink ID="HyperLink8" Text="Mat Dyson" runat="server" NavigateUrl="#" /></li>
                                    <li><asp:HyperLink ID="HyperLink4" Text="Will Wheeler" runat="server" NavigateUrl="#" /></li>
                                </ul>--%>
                            </cex:RoundedBox>
                        </LoggedInTemplate>
                    </asp:LoginView>
                </li>
            </ul>
            
        </div>
    </asp:Panel>
    <acms:EventDrivenDataSource ID="dsCommitments" runat="server" />
    <acms:EventDrivenDataSource ID="dsAudits" runat="server"/>
    <acms:EventDrivenDataSource ID="dsMerit" runat="server"/>
    <acms:EventDrivenDataSource ID="dsNewUsers" runat="server"/>
    <acms:AcmsFlatSiteMapDataSource ID="dsProcesses" ParentPath="~/Processes" runat="server"/>
    <acms:AcmsFlatSiteMapDataSource ID="dsUserTips" ParentPath="~/UserTips" runat="server" />
</asp:Content>
